export default [{
        path: "/",
        redirect: "/home"
    },
    {
        path: "/login",
        name: "login",
        component: () => import("@pages/Login"),
        meta: {
            isHidden: true
        }
    },
    {
        path: "/register",
        name: "register",
        component: () => import("@pages/Register"),
        meta: {
            isHidden: true
        }
    },
    {
        path: "/home",
        name: "home",
        component: () => import("@pages/Home")
    },
    {
        path: "/search/:keyword?",
        name: "search",
        component: () => import("@pages/Search")
    },
    {
        path: "/detail/:skuId",
        name: "detail",
        component: () => import("@pages/Detail")
    },
    {
        path: "/addCartSuccess",
        name: "addCartSuccess",
        component: () => import("@pages/AddCartSuccess")
    },
    {
        path: "/shopCart",
        name: "shopCart",
        component: () => import("@pages/ShopCart")
    }
]